package com.ruoyi.bizsys.service;

import java.util.List;

import com.ruoyi.bizsys.domain.DeviceAppList;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * appList绑定Service接口
 *
 * @author african-loan
 * @date 2022-04-07
 */
public interface IDeviceAppListService extends IService<DeviceAppList>{
    /**
     * 查询appList绑定
     *
     * @param id appList绑定ID
     * @return appList绑定
     */
    public DeviceAppList selectDeviceAppListById(Long id);

    /**
     * 查询appList绑定列表
     *
     * @param deviceAppList appList绑定
     * @return appList绑定集合
     */
    public List<DeviceAppList> selectDeviceAppListList(DeviceAppList deviceAppList);

    /**
     * 新增appList绑定
     *
     * @param deviceAppList appList绑定
     * @return 结果
     */
    public int insertDeviceAppList(DeviceAppList deviceAppList);

    /**
     * 修改appList绑定
     *
     * @param deviceAppList appList绑定
     * @return 结果
     */
    public int updateDeviceAppList(DeviceAppList deviceAppList);

    /**
     * 批量删除appList绑定
     *
     * @param ids 需要删除的appList绑定ID
     * @return 结果
     */
    public int deleteDeviceAppListByIds(Long[] ids);

    /**
     * 删除appList绑定信息
     *
     * @param id appList绑定ID
     * @return 结果
     */
    public int deleteDeviceAppListById(Long id);

    List<Integer> getIdsByDeviceId(String deviceId);

    String get7DaysAppList(String userId);

    int selectApplistCount(String id, String userId);
}
